package com.answeringplayer.domain;

import java.sql.Timestamp;

/**
 * 考试答案实体类
 * 用于存储用户答题记录
 */
public class ExamAnswer {
    private Long answerId;
    private Long recordId;
    private Long userId;
    private Long questionId;
    private String userAnswer;
    private Boolean isCorrect;
    private Integer score;
    private Timestamp answeredTime;
    private String analysis;

    // getter and setter methods
    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }

    public Boolean getIsCorrect() {
        return isCorrect;
    }

    public void setIsCorrect(Boolean isCorrect) {
        this.isCorrect = isCorrect;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Timestamp getAnsweredTime() {
        return answeredTime;
    }

    public void setAnsweredTime(Timestamp answeredTime) {
        this.answeredTime = answeredTime;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }
}
